<el-dialog title="新增学生信息" v-model="addFormVisible" :close-on-click-modal="false">
    <el-form :model="addForm" label-width="100px" :rules="addFormRules" ref="addForm">
        <el-form-item label="姓名：" prop="studentName">
            <el-input v-model="addForm.studentName" auto-complete="off"></el-input>
        </el-form-item>
        <el-form-item label="性别：">
            <el-radio-group v-model="addForm.studentSex">
                <el-radio label="男">男</el-radio>
                <el-radio label="女">女</el-radio>
            </el-radio-group>
        </el-form-item>
        <el-form-item label="民族：" prop="studentNation">
            <el-input v-model="addForm.studentNation" type="text" auto-complete="off"></el-input>
        </el-form-item>
        <el-form-item label="出生日期：" prop="stuBirth">
            <!--<el-input v-model="addForm.student_birth" auto-complete="text"></el-input>-->
            <div class="block">
                <span class="demonstration"></span>
                <el-date-picker v-model="addForm.stuBirth" type="date" placeholder="选择日期" :picker-options="pickerOptions0">
                </el-date-picker>
            </div>
        </el-form-item>
        <el-form-item label="身份证：" prop="studentIdcard">
            <el-input v-model="addForm.studentIdcard" type="text" auto-complete="off"></el-input>
        </el-form-item>
        <el-form-item label="学历：" prop="stuEducation">
            <el-input v-model="addForm.stuEducation" type="text" auto-complete="off"></el-input>
        </el-form-item>
        <el-form-item label="毕业院校：" prop="studentGraduate">
            <el-input v-model="addForm.studentGraduate" type="text" auto-complete="off"></el-input>
        </el-form-item>
        <!--所选类型-->
        <el-form-item label="所选类型：" prop="studentType" size="130%" >
            <el-select v-model="addForm.studentType" placeholder="请选择升学类型" >
                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.label" >
                </el-option>
            </el-select>
        </el-form-item>
        <!--所选专业：-->
        <el-form-item label="所选专业：" prop="majorName">
            <el-select v-model="addForm.majorId" placeholder="请选择专业" size="130%">
                <el-option v-for="item in majors" :key="item.majorId" :label="item.majorName" :value="item.majorId">
                </el-option>
            </el-select>
        </el-form-item>
        <el-form-item label="手机号：" prop="studentPhone">
            <el-input v-model="addForm.studentPhone" type="text" auto-complete="off"></el-input>
        </el-form-item>
        <el-form-item label="家庭住址：" prop="stuAddress">
            <el-input v-model="addForm.stuAddress" type="text" auto-complete="off"></el-input>
        </el-form-item>
        <el-form-item label="第一次缴费:" prop="firstMoney">
            <el-input v-model.number="addForm.firstMoney" type="text" auto-complete="off"></el-input>
        </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
        <el-button @click="addFormVisible = false">取消</el-button>
        <el-button type="primary" @click="addSubmit" :loading="addLoading">保存</el-button>
    </div>
</el-dialog>